package com.cxria.pattern.interpreter

class VarExpression extends Expression {

    private String key

    VarExpression(String key) {
        this.key = key
    }

    @Override
    int interpreter(Map<String, Integer> var) {
        var[key]
    }

}